Optimal. Leaf size=124 \[ \frac {a (e x)^{2 n}}{2 e n}-\frac {b x^{-2 n} (e x)^{2 n} \text {Li}_2\left (-e^{d x^n+c}\right )}{d^2 e n}+\frac {b x^{-2 n} (e x)^{2 n} \text {Li}_2\left (e^{d x^n+c}\right )}{d^2 e n}-\frac {2 b x^{-n} (e x)^{2 n} \tanh ^{-1}\left (e^{c+d x^n}\right )}{d e n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 124, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 6, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {14, 5441, 5437, 4182, 2279, 2391} \[ -\frac {b x^{-2 n} (e x)^{2 n} \text {PolyLog}\left (2,-e^{c+d x^n}\right )}{d^2 e n}+\frac {b x^{-2 n} (e x)^{2 n} \text {PolyLog}\left (2,e^{c+d x^n}\right )}{d^2 e n}+\frac {a (e x)^{2 n}}{2 e n}-\frac {2 b x^{-n} (e x)^{2 n} \tanh ^{-1}\left (e^{c+d x^n}\right )}{d e n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2279
Rule 2391
Rule 4182
Rule 5437
Rule 5441
Rubi steps
\begin {align*} \int (e x)^{-1+2 n} \left (a+b \text {csch}\left (c+d x^n\right )\right ) \, dx &=\int \left (a (e x)^{-1+2 n}+b (e x)^{-1+2 n} \text {csch}\left (c+d x^n\right )\right ) \, dx\\ &=\frac {a (e x)^{2 n}}{2 e n}+b \int (e x)^{-1+2 n} \text {csch}\left (c+d x^n\right ) \, dx\\ &=\frac {a (e x)^{2 n}}{2 e n}+\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \int x^{-1+2 n} \text {csch}\left (c+d x^n\right ) \, dx}{e}\\ &=\frac {a (e x)^{2 n}}{2 e n}+\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int x \text {csch}(c+d x) \, dx,x,x^n\right )}{e n}\\ &=\frac {a (e x)^{2 n}}{2 e n}-\frac {2 b x^{-n} (e x)^{2 n} \tanh ^{-1}\left (e^{c+d x^n}\right )}{d e n}-\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \log \left (1-e^{c+d x}\right ) \, dx,x,x^n\right )}{d e n}+\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \log \left (1+e^{c+d x}\right ) \, dx,x,x^n\right )}{d e n}\\ &=\frac {a (e x)^{2 n}}{2 e n}-\frac {2 b x^{-n} (e x)^{2 n} \tanh ^{-1}\left (e^{c+d x^n}\right )}{d e n}-\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{c+d x^n}\right )}{d^2 e n}+\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{c+d x^n}\right )}{d^2 e n}\\ &=\frac {a (e x)^{2 n}}{2 e n}-\frac {2 b x^{-n} (e x)^{2 n} \tanh ^{-1}\left (e^{c+d x^n}\right )}{d e n}-\frac {b x^{-2 n} (e x)^{2 n} \text {Li}_2\left (-e^{c+d x^n}\right )}{d^2 e n}+\frac {b x^{-2 n} (e x)^{2 n} \text {Li}_2\left (e^{c+d x^n}\right )}{d^2 e n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.15, size = 175, normalized size = 1.41 \[ \frac {x^{-2 n} (e x)^{2 n} \left (a d^2 x^{2 n}+2 b \text {Li}_2\left (-e^{-d x^n-c}\right )-2 b \text {Li}_2\left (e^{-d x^n-c}\right )+2 b d x^n \log \left (1-e^{-c-d x^n}\right )-2 b d x^n \log \left (e^{-c-d x^n}+1\right )+2 b c \log \left (1-e^{-c-d x^n}\right )-2 b c \log \left (e^{-c-d x^n}+1\right )-2 b c \log \left (\tanh \left (\frac {1}{2} \left (c+d x^n\right )\right )\right )\right )}{2 d^2 e n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.44, size = 555, normalized size = 4.48 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \operatorname {csch}\left (d x^{n} + c\right ) + a\right )} \left (e x\right )^{2 \, n - 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.92, size = 326, normalized size = 2.63 \[ \frac {a x \,{\mathrm e}^{\frac {\left (-1+2 n \right ) \left (-i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )+i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}+i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}-i \pi \mathrm {csgn}\left (i e x \right )^{3}+2 \ln \relax (x )+2 \ln \relax (e )\right )}{2}}}{2 n}+\frac {2 b \,{\mathrm e}^{-i \pi n \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )} {\mathrm e}^{i \pi n \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}} {\mathrm e}^{i \pi n \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}} {\mathrm e}^{-i \pi n \mathrm {csgn}\left (i e x \right )^{3}} {\mathrm e}^{\frac {i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )}{2}} {\mathrm e}^{-\frac {i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}}{2}} {\mathrm e}^{-\frac {i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}}{2}} {\mathrm e}^{\frac {i \pi \mathrm {csgn}\left (i e x \right )^{3}}{2}} e^{2 n} {\mathrm e}^{c} \left (\frac {\left (\ln \left (1-{\mathrm e}^{c +d \,x^{n}}\right )-\ln \left ({\mathrm e}^{c +d \,x^{n}}+1\right )\right ) d \,x^{n} {\mathrm e}^{-c}}{2}+\frac {\left (\dilog \left (1-{\mathrm e}^{c +d \,x^{n}}\right )-\dilog \left ({\mathrm e}^{c +d \,x^{n}}+1\right )\right ) {\mathrm e}^{-c}}{2}\right )}{e n \,d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ 2 \, b \int \frac {\left (e x\right )^{2 \, n - 1}}{e^{\left (d x^{n} + c\right )} - e^{\left (-d x^{n} - c\right )}}\,{d x} + \frac {\left (e x\right )^{2 \, n} a}{2 \, e n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \left (a+\frac {b}{\mathrm {sinh}\left (c+d\,x^n\right )}\right )\,{\left (e\,x\right )}^{2\,n-1} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (e x\right )^{2 n - 1} \left (a + b \operatorname {csch}{\left (c + d x^{n} \right )}\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________